<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="design/styly.jsp" />
<title>Admin</title>
</head>
<body><jsp:include page="design/hlavicka.jsp" />
<div id="menu">
<p><a href="adminHome">Správa dílů</a>
<a href="adminStitek">Správa štítků</a>
<a href="adminUzivatel">Správa uživatelů</a>
<em class="right">Je spuštěn administrátorský mod !</em>
</p>
</div>
<h1>Změnit parametry dílu</h1>



<form:form commandName="dilForm" action="adminUpravDil">
<form:hidden path="id"/>
<form:label path="">Katalogové číslo: </form:label>
<form:input path="katalogoveCislo" />
<form:errors path="katalogoveCislo" cssClass="error" /><br /><br />
<form:label path="nazev">Název: </form:label>
<form:input path="nazev" />
<form:errors path="nazev" cssClass="error" /><br><br />
<form:label path="dodavatel">Dodavatel: </form:label>
<form:select path="dodavatel"> <form:options items="${dodavatele}" itemLabel="nazevFirmy" itemValue="id"/></form:select>
<form:errors path="dodavatel" cssClass="error" /><br /><br />
<form:label path="stitky">Štítky: </form:label>
<form:select path="stitky"> <form:options items="${stitky}" itemLabel="nazevStitku" itemValue="id"/></form:select>
<form:errors path="stitky" cssClass="error" /><br /><br />
<form:label path="poznamka">Poznámka: </form:label>
<form:input path="poznamka" /><br /><br />
<input type="submit" value="Uprav"/>
</form:form>
</body>
</html>